<?php

namespace maotool\office\xlsx;

class Cell
{

    protected $key;

    protected $value;

    protected $fillColor;

    protected $fontColor;

    /**
     * @param array $options 参数
     */
    public function __construct($options = [
        "key" => null,
        "value" => "",
        "fillColor" => "5184BA",
        "fontColor" => "FFFFFF",
    ])
    {
        $this->key = isset($options["key"]) ? $options["key"] : null;
        $this->value = isset($options["value"]) ? $options["value"] : "";
        $this->fillColor = isset($options["fillColor"]) ? $options["fillColor"] : "5184BA";
        $this->fontColor = isset($options["fontColor"]) ? $options["fontColor"] : "FFFFFF";
    }

    /**
     * @return mixed
     */
    public function getValue()
    {
        return $this->value;
    }

    /**
     * @param mixed $value
     */
    public function setValue($value)
    {
        $this->value = $value;
    }

    /**
     * @return mixed
     */
    public function getKey()
    {
        return $this->key;
    }

    /**
     * @param mixed $key
     */
    public function setKey($key)
    {
        $this->key = $key;
    }

    /**
     * @return mixed|null
     */
    public function getFillColor()
    {
        return $this->fillColor;
    }

    /**
     * @param mixed|null $fillColor
     */
    public function setFillColor($fillColor)
    {
        $this->fillColor = $fillColor;
    }

    /**
     * @return mixed|null
     */
    public function getFontColor()
    {
        return $this->fontColor;
    }

    /**
     * @param mixed|null $fontColor
     */
    public function setFontColor($fontColor)
    {
        $this->fontColor = $fontColor;
    }

}